package taller2.view.menus.CreatorMenus;

import java.awt.Color;

import javax.swing.JComboBox;

import taller2.controller.listeners.GraphCreator.DijkstraCreatorMenuListener;
import taller2.interfaces.AlgorithmApplicator;
import taller2.interfaces.Graph;
import taller2.utils.Constants;
import taller2.view.draws.DrawingArea;
import taller2.view.windows.CreatorWindows.GraphCreatorWindow;

public class DijkstraCreatorMenu extends GraphCreatorMenu {
	private static final long serialVersionUID = 111L;

	public DijkstraCreatorMenu(DrawingArea area, Graph graph,
			GraphCreatorWindow window, AlgorithmApplicator algorithmApplicator) {
		super(area, graph, window, algorithmApplicator);
	}
	
	@Override
	protected void createOptions(DrawingArea area,Graph graph, AlgorithmApplicator algorithmApplicator){
		options = new JComboBox<String>(Constants.availableDijkstraOptions);
		options.setSelectedIndex(0);
		options.setBackground(new Color(0,0,0));
		options.addActionListener(new DijkstraCreatorMenuListener(area,graph, algorithmApplicator));
	} 
	
}
